package cn.zyy.hotel.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Checkin implements Serializable {

  private Integer id;
  private Integer roomTypeId;
  private Integer roomId;
  private String customerName;
  private String idCard;
  private String phone;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(timezone = "Asia/Shanghai",pattern = "yyyy-MM-dd")
  private Date arriveDate;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(timezone = "Asia/Shanghai",pattern = "yyyy-MM-dd")
  private Date leaveDate;
  private Double payPrice;
  private Integer ordersId;
  private Integer status;
  private Date createDate;
  private Integer createdBy;
  private Date modifyDate;
  private Integer modifyBy;
  private String remark;

  //房型对象
  private RoomType roomType;
  //房间对象
  private Room room;

}
